﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Reflection;

namespace PickGold.Forms
{
	public class CFormAbout_base : CForm_base
	{
		private TableLayoutPanel _TableLayoutPanel;
		private PictureBox _PictureBox;
		private Label _LabelProductName;
		private Label _LabelVersion;
		private Label _LabelCopyright;
		private Label _LabelCompanyName;
		private TextBox _TextBoxDescription;
		private Button _ButtonOK;

		public CFormAbout_base() : base()
		{
			this._TableLayoutPanel = new TableLayoutPanel();
			this._PictureBox = new PictureBox();
			this._LabelProductName = new Label();
			this._LabelVersion = new Label();
			this._LabelCopyright = new Label();
			this._LabelCompanyName = new Label();
			this._TextBoxDescription = new TextBox();
			this._ButtonOK = new Button();
			this._TableLayoutPanel.SuspendLayout();
			((ISupportInitialize)(this._PictureBox)).BeginInit();
			this.SuspendLayout();
			// 
			this._TableLayoutPanel.ColumnCount = 2;
			this._TableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F));
			this._TableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 67F));
			this._TableLayoutPanel.Controls.Add(this._PictureBox, 0, 0);
			this._TableLayoutPanel.Controls.Add(this._LabelProductName, 1, 0);
			this._TableLayoutPanel.Controls.Add(this._LabelVersion, 1, 1);
			this._TableLayoutPanel.Controls.Add(this._LabelCopyright, 1, 2);
			this._TableLayoutPanel.Controls.Add(this._LabelCompanyName, 1, 3);
			this._TableLayoutPanel.Controls.Add(this._TextBoxDescription, 1, 4);
			this._TableLayoutPanel.Controls.Add(this._ButtonOK, 1, 5);
			this._TableLayoutPanel.Dock = DockStyle.Fill;
			this._TableLayoutPanel.Location = new Point(9, 8);
			this._TableLayoutPanel.RowCount = 6;
			this._TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10F));
			this._TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10F));
			this._TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10F));
			this._TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10F));
			this._TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
			this._TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10F));
			this._TableLayoutPanel.Size = new System.Drawing.Size(417, 245);
			this._TableLayoutPanel.TabIndex = 0;
			// 
			this._PictureBox.Dock = DockStyle.Fill;
			//this.logoPictureBox.Image = ((Image)(frm.Resource.GetObject("logoPictureBox.Image")));
			this._PictureBox.Location = new Point(3, 3);
			this._TableLayoutPanel.SetRowSpan(this._PictureBox, 6);
			this._PictureBox.Size = new Size(131, 239);
			this._PictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
			this._PictureBox.TabIndex = 12;
			this._PictureBox.TabStop = false;
			// 
			this._LabelProductName.Dock = DockStyle.Fill;
			this._LabelProductName.Location = new Point(143, 0);
			this._LabelProductName.Margin = new Padding(6, 0, 3, 0);
			this._LabelProductName.MaximumSize = new Size(0, 16);
			this._LabelProductName.Size = new Size(271, 16);
			this._LabelProductName.TabIndex = 19;
			this._LabelProductName.Text = Common.AssemblyProduct;
			this._LabelProductName.TextAlign = ContentAlignment.MiddleLeft;
			// 
			this._LabelVersion.Dock = DockStyle.Fill;
			this._LabelVersion.Location = new Point(143, 24);
			this._LabelVersion.Margin = new Padding(6, 0, 3, 0);
			this._LabelVersion.MaximumSize = new Size(0, 16);
			this._LabelVersion.Size = new Size(271, 16);
			this._LabelVersion.TabIndex = 0;
			this._LabelVersion.Text = String.Format("版本 {0}", Common.AssemblyVersion);
			this._LabelVersion.TextAlign = ContentAlignment.MiddleLeft;
			// 
			this._LabelCopyright.Dock = DockStyle.Fill;
			this._LabelCopyright.Location = new Point(143, 48);
			this._LabelCopyright.Margin = new Padding(6, 0, 3, 0);
			this._LabelCopyright.MaximumSize = new Size(0, 16);
			this._LabelCopyright.Size = new Size(271, 16);
			this._LabelCopyright.TabIndex = 21;
			this._LabelCopyright.Text = Common.AssemblyCopyright;
			this._LabelCopyright.TextAlign = ContentAlignment.MiddleLeft;
			// 
			this._LabelCompanyName.Dock = DockStyle.Fill;
			this._LabelCompanyName.Location = new Point(143, 72);
			this._LabelCompanyName.Margin = new Padding(6, 0, 3, 0);
			this._LabelCompanyName.MaximumSize = new Size(0, 16);
			this._LabelCompanyName.Size = new Size(271, 16);
			this._LabelCompanyName.TabIndex = 22;
			this._LabelCompanyName.Text = Common.AssemblyCompany;
			this._LabelCompanyName.TextAlign = ContentAlignment.MiddleLeft;
			// 
			this._TextBoxDescription.Dock = DockStyle.Fill;
			this._TextBoxDescription.Location = new Point(143, 99);
			this._TextBoxDescription.Margin = new Padding(6, 3, 3, 3);
			this._TextBoxDescription.Multiline = true;
			this._TextBoxDescription.ReadOnly = true;
			this._TextBoxDescription.ScrollBars = ScrollBars.Both;
			this._TextBoxDescription.Size = new Size(271, 116);
			this._TextBoxDescription.TabIndex = 23;
			this._TextBoxDescription.TabStop = false;
			this._TextBoxDescription.Text = Common.AssemblyDescription;
			// 
			// okButton
			// 
			this._ButtonOK.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Right)));
			this._ButtonOK.DialogResult = DialogResult.Cancel;
			this._ButtonOK.Location = new Point(339, 221);
			this._ButtonOK.Size = new Size(75, 21);
			this._ButtonOK.TabIndex = 24;
			this._ButtonOK.Text = "确定(&O)";
			// 
			// CAboutForm
			// 
			this.AcceptButton = this._ButtonOK;
			this.AutoScaleDimensions = new SizeF(6F, 12F);
			this.AutoScaleMode = AutoScaleMode.Font;
			this.ClientSize = new Size(435, 261);
			this.Controls.Add(this._TableLayoutPanel);
			this.FormBorderStyle = FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Padding = new Padding(9, 8, 9, 8);
			this.ShowIcon = false;
			this.ShowInTaskbar = false;
			this.StartPosition = FormStartPosition.CenterParent;
			this.Text = String.Format("关于 {0}", Common.AssemblyTitle);
			this._TableLayoutPanel.ResumeLayout(false);
			this._TableLayoutPanel.PerformLayout();
			((ISupportInitialize)(this._PictureBox)).EndInit();
			this.ResumeLayout(false);
			//
			this._ButtonOK.Click += delegate(object sender, EventArgs e)
			{
				this.Close();
			};
		}
		//
	}
	//
}
//
